package br.com.escolaespacocrianca.fineec.component;

import br.com.caelum.vraptor.ioc.Component;
import br.com.caelum.vraptor.ioc.SessionScoped;
import br.com.escolaespacocrianca.fineec.model.User;

@Component
@SessionScoped
public class UserSession {
	private User user;
	
	public boolean isLogged(){
		return user != null;
	}
	
	public void logout(){
		user = null;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public User getUser() {
		return user;
	}
	
	
}
